;layui.define(function (e) {
    layui.use(['index', 'form', 'common', 'http'], function () {

        var http = layui.http
            , form = layui.form
            , common = layui.common;

        var urls = {
            modifyData: "/core/menu/modifyData"
        };

        form.on("submit(modifyData)", function (data) {
            http.post({
                loading: true,
                loadingText: '数据提交中,请稍后...',
                url: urls.modifyData,
                data: data.field,
                success: function (res) {
                    //刷新父页面
                    parent.fn.refresh(true);
                    common.showSuccessTips('保存成功')
                }
            });
            return false;
        });

    });

    e("core/menu_modify", {});
});